<template>
	<div class="use-fetch">use-fetch</div>
</template>

<script setup lang="ts">
	import { fetchHomeInfoData } from '~/service/home'
	import type { IResultData } from '@/service/index'

	const { data } = await fetchHomeInfoData()

	console.log('data: ', data.value?.data)

	/* import hyRequst from '@/service/index'
	import type { IResultData } from '@/service/index'

	const { data } = await hyRequst.get<IResultData<any>>('/homeInfo')

	console.log(data.value?.data) */
</script>
